package com.groupbuying.settleconsumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author WYN
 * @date 2019/5/24
 * @email wyn20140226@aliyun.com
 * @des 订单中心接口连接器
 */
@Service
@FeignClient(name = "bus-order")
public interface OrderFeign {

    /**
     *银盛分账回执接口
     */
    @PostMapping("/ysservice/splitReceipt")
    Map<String, Object>ysSplitReceipt(@RequestParam Map<String, Object> mapParams);
    /**
     * 通过订单号获取收银台ID
     * @param orderId 订单ID
     * @return
     */
    @GetMapping("/ushop/getCounterIdByOrderId")
    String getCounterIdByOrderId(String orderId);

    /**
     * 获取订单信息接口
     * @Author cuich
     * @Date 2019/9/23 18:20
     * @param orderId
     * @return java.util.Map
     **/
    @RequestMapping(value = "/ushop/getOrderForPay", method = RequestMethod.GET)
    Map orderInfo(@RequestParam("orderId") String orderId);
    }

